/**
 * import {InputGroup} from '../base/BaseStatic'
 */
import styled from 'styled-components'
import {Form} from 'element-react'

const InputGroup = styled.div`
  margin: 20px;
`
const InputLabel = styled.label`
  display: inline-block;
  width: 150px;
  text-align: right;
  color: #48576a;
  margin-right: 10px;
  vertical-align: top;
`
const InlineMarginR = styled.label`
  display: inline-block;
  margin-right: 20px;
`
const QuillElem = styled.label`
  display: inline-block;
  width: 60%;
  .ql-editor {
    height: 350px;
  }
`
// 旧式表格组件
const Table = styled.table`
  width: 100%;
  margin-top: 20px;
  border: 1px solid #e2e2e2;
  font-size: 14px;
  line-height: 21px;
  color: #333;
  text-align: center;
  border-collapse: collapse;
  th, tr, td {
    border: 1px solid #e2e2e2;
  }
  th {
    color: #fff;
    background-color: #fbcd39;
  }
  tr {
    height: 42px;
    background-color: #fff;
  }
  th, td {
    padding: 10px 0;
  }
  tr:hover {
    background-color: #f7f5ee;
  }
`
// 列表页搜索面板容器组件
const SearchPanel = styled.div`
  position: relative;
  width: 96%;
  padding: 20px 2% 0 2%;
  margin: 20px 0;
  border: 1px solid #dfe6ec;
  border-radius: 4px;
  .el-row {
    margin-bottom: 20px;
  }
  .el-col {
    display: flex;
    height: 42px;
  }
  .el-col:nth-child(odd) { justify-content: flex-end; }
  .el-col:nth-child(even) { justify-content: flex-start; }
  .text {
    justify-content: flex-end;
    padding-right: 10px;
    font-size: 14px;
    color: #48576a;
    line-height: 42px;
  }
  .el-input {
    width: 220px;
    height: 42px;
  }
  .el-button {
    position: absolute;
    right: 20px;
    bottom: 20px;
  }
`
// 表单页eleme表单二次封装
const FormWrapper = styled(Form)`
  margin-top: 36px;
  padding: 28px;
  border: 1px solid #E5E9F2;
  border-radius: 4px;
  .el-form-item__content {
    margin-left: 100px !important;
  }
  .el-input {
    width: 220px;
  }
  .el-textarea {
    width: 330px;
  }
`
// 缩略图展示
const SmallPicture = styled.div`
  display: inline-block;
  width: 148px;
  height: 148px;
  border-radius: 6px;
  border: 1px dashed #c0ccda;
  margin-right: 20px;
  img {
    width: 100%;
    height: 100%;
  }
`

export {
  InputGroup,
  InputLabel,
  InlineMarginR,
  QuillElem,
  Table,
  SearchPanel,
  FormWrapper,
  SmallPicture
}